<?php
require_once '../lib/controller.php';

class action extends controller
{
	function do_get()
	{
		$site = $this->module('biz.site');
		$data = array();
		$data['row'] = $site->list_site(array('meye_site.user_id'=>$this->session['user_id']));
		if( isset($this->get['uri']) )
		{
			$data['uri'] = $this->get['uri'];
		}
		$data['total_page'] = $site->total_page;
		$this->view('www.site_list', $data);
	}

	function check_privileges()
	{
		if( ! isset($this->session['user_id']) )
		{
			$this->msg('请先登录', 3, 'login.php');
			return false;
		}else{
			return true;
		}
	}

	public function check_get()
	{
		return true;
	}

}

$action = new action();
$action->run();
?>